#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "freertos/semphr.h"

#include "esp_lcd_types.h"

#include "lvgl.h"
#include "lvgl_helpers.h"

#define LV_TICK_PERIOD_MS 1

#define PIN_LCD_MOSI 32
#define PIN_LCD_MISO -1
#define PIN_LCD_CLK 33
#define PIN_LCD_CS 25
#define PIN_LCD_DC 27
#define PIN_LCD_RST 26

#define LCD_HOR 320
#define LCD_VER 240

#define SPI_SPEED 10000*6000
#define SPI_LCD_HOST SPI3_HOST

extern lv_font_t font_ChangYongHanZi_12;
extern lv_font_t myFont;
extern lv_indev_t *touch_pad ;
extern esp_lcd_panel_handle_t panel_handle;

extern SemaphoreHandle_t xGuiSemaphore;


void init_lvgl();
